<template>
  <div class="recommend">
    <div v-for="item in recommends" :key="item.image" class="recommend-item">
      <a href="javascript:;"><img :src="item.image" :alt="item.title" /></a>
      <div class="title">{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style scoped>
.recommend {
  display: flex;
  padding-bottom: 24px;
  border-bottom: 7px solid #eee;
}
.recommend .recommend-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
  margin-top: 10px;
}
.recommend .recommend-item img {
  width: 85%;
}

.title {
  margin-top: 8px;
  color: #8a8a8a;
  font-size: 13px;
}
</style>
